package com.coding.service;

import com.coding.dto.RestBean;
import com.coding.pojo.LiveInfo;
import org.springframework.web.multipart.MultipartFile;

import java.util.ArrayList;

public interface LiveService {
    //创建直播间
    RestBean createLiveRoom(String userId, String title, MultipartFile coverImage);

    //获取直播间列表
    RestBean<ArrayList<LiveInfo>> getAllLiveInfo();

    //主播停止直播

    RestBean<String> stopLive(String roomId);

    //获取正在推流的直播流

    RestBean getAllLive();


    //封禁streamName对应的直播

    RestBean banStream(String streamName, String BannedDuration);
}
